package com.hxgis.oc.product.base;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.io.File;

@Slf4j
@Setter
@Getter
public abstract class ConvertTask extends ProduceTask{
    protected File inputFile;
    private boolean async = true;

    public ConvertTask(Long workID, String ds) {
        super(workID, ds);
    }

    protected void retrieve(){
        ProductFactoryManager.retrieve(this);
        log.debug("{} fail {} to {}",
                this.getClass().getSimpleName(),
                inputFile.getAbsolutePath(),
                outputFile.getAbsolutePath());
    }
}
